#!/usr/bin/env python
# coding: utf-8
import sys
sys.path.append('./Lib/')
from File_Operation import *
from MG_Operation import *

# ## 执行参数替换

#设置基本替换文件
# 定义变量
source = '../input_data/card/param_card.dat'
replaced_content={"tanb":"    1 {} # TB",
	              "sba" :"    2 {} # sinbma",
		          "mh"  :"   25 {} # mh1",
			      "mH"  :"   35 {} # mh2",
				  "mA"  :"   36 {} # mh3",
				  "mHc" :"   37 {} # mhc"}

df = pd.read_table("../input_data/data/data_grid_mh_mHc.tsv")
# 将key单独提取为列表
input_value_list=Get_Maplist_Key(replaced_content)
#param=Extracting_Param_From_Df(df,input_value_list)
Generate_Multi_MG_Param_Card(df,source,replaced_content)
